local CheckWidgetType = UI.CheckWidgetType
local MakeAccessor = UI.MakeAccessor
local MakeTypeSetter = UI.MakeTypeSetter

--[[ Minimap @FIXME ]]--
local Minimap = UI.NewWidgetType("Minimap", "Frame")
Minimap.parameters = {
	zoom = 1,
	playerwidth = 0,
	playerheight = 0,
}

function Minimap:Initialize(o)
	local t = UI.params[o]
	assert(t)
end

MakeAccessor("Minimap", "GetZoom", "zoom")
MakeTypeSetter("Minimap", "SetZoom", "zoom", "number")

MakeTypeSetter("Minimap", "SetPlayerTextureHeight", "playerheight", "number")
MakeTypeSetter("Minimap", "SetPlayerTextureWidth", "playerwidth", "number")

function Minimap.prototype:GetZoomLevels()
	CheckWidgetType("Minimap:GetZoomLevels", self, "Minimap")
	return 10
end

function Minimap.prototype:GetPingPosition()
	CheckWidgetType("Minimap:GetPingPosition", self, "Minimap")
	return 0, 0
end

